From 1ded71e27c5ca61935734eadcd79e722cdf99732 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 22 Aug 2011 16:15:19 +0100 Subject: [PATCH] Adjust non-debug ASSERT() definition to avoid unused-variable warnings. Signed-off-by: Keir Fraser --- xen/include/xen/lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index 0102b8ab70..3e3a0caf8b 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -37,7 +37,7 @@ do { \ #define ASSERT(p) \ do { if ( unlikely(!(p)) ) assert_failed(#p); } while (0) #else -#define ASSERT(p) ((void)0) +#define ASSERT(p) do { if ( 0 && (p) ); } while (0) #endif #define ABS(_x) ({ \ -- 2.30.2